package com.ztools.pc.service.information;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ztools.common.model.pc.information.Classes;
import com.ztools.common.util.common.PageUtil;

import java.util.List;

/**
 * @Author:一口香菜
 * @Date: 2023/3/17  19:07
 * @Version 1.0
 */
public interface ClassesService extends IService<Classes> {

    /**
     * 分页查询
     *
     * @param pageUtil pageUtil
     * @return
     */
    Page<Classes> findList(PageUtil<Classes> pageUtil);

    /**
     * 根据条件查询
     *
     * @param classes classes
     * @return
     */
    List<Classes> findByObject(Classes classes);

    /**
     * 添加
     *
     * @param classes classes
     * @return
     */
    boolean add(Classes classes);

    /**
     * 修改
     *
     * @param classes classes
     * @return
     */
    boolean update(Classes classes);

    /**
     * 删除
     *
     * @param classes classes
     * @return
     */
    boolean delete(Classes classes);

}
